#!/usr/bin/python
# -*-coding:UTF-8 -*-

# ========================
# @Time  : 2021/2/8
# @Author: Sunny
# ========================

class MyTest:
    """
    自定义的类：文档注释
    """
    name = 'myclass类'

    def __init__(self,age):
        self.age = age

    def func(self):
        print('func')


#查看类属性
print(MyTest.__dict__)

m = MyTest(18)
#查看对象属性
print(m.__dict__)